package com.unitechs.controller.excel;

import com.unitechs.commons.annotation.ZyucExcelIf;
import com.unitechs.commons.annotation.ZyucExcelIfs;
import com.unitechs.commons.annotation.ZyucExcelTitle;
import lombok.Data;

@Data
public class ExcelTestEntity {

    @ZyucExcelTitle(zyucTitle = "A列")
    private String aaa;

    private String bbb;

    @ZyucExcelTitle(zyucTitle = "C列")
    private String ccc;

    @ZyucExcelTitle(zyucTitle = "D列")
    @ZyucExcelIfs({
            @ZyucExcelIf(zyucOperator = "/", zyucOpeValue = "10", zyucSort = 100),
            @ZyucExcelIf(zyucOperator = ">", zyucOpeValue = "0.5", zyucSort = 10,zyucFontColor = "green"),
            @ZyucExcelIf(zyucOperator = "<",zyucOpeValue = "0.5",zyucSort = 5,zyucFontColor = "red")
    })
    private Integer ddd;

    @ZyucExcelTitle(zyucTitle = "E列")
    @ZyucExcelIf(zyucOperator = ">", zyucOpeValue = "5", zyucFontColor = "red", zyucSort = 0)
    private String eee;

    private String fff;

    @ZyucExcelTitle(zyucTitle = "G列")
    @ZyucExcelIf(zyucOperator = "contains", zyucOpeValue = "14", zyucColor = "blue", zyucSort = 0)
    private String ggg;
}
